

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'bt-battery-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class' => 'form collapsed',
	),
)); ?>
<fieldset >
	<legend><?php echo Controller::getActionName($this->action->id); ?></legend>
	
	<div class="notification tip" style="display: block; "> 
    <span class="strong">Tip:</span> <?php echo $form->errorSummary($model); ?>
 <span class="close" title="Dismiss"></span>
    </div>
<table border="10" cellpadding="20" cellspacing="10">
<div>	
	<label>
		<?php //echo $form->labelEx($model,'BASE_N'); ?>
<?php //echo CHtml::dropDownList('MtsysBase[BASE_ID]','', CHtml::listData($base, 'BASE_ID', 'BASE_NAME'));
?>
</div>
<div>

 <tr>
 <td>
<?php echo $form->labelEx($model,'GROUP_V'); ?> 
</td>
<td>
<?php //echo CHtml::dropDownList('BtBatterys[RECORD_ID]','', CHtml::listData($batterys, 'RECORD_ID', 'GROUPNAME_V'));
?>
<?php  echo $form->textField($model,'GROUP_V', array('readonly'=>'readonly')); ?>
</td>
</tr>

</div>
	<label>
		<?php //echo $form->labelEx($model,'BATTERYTYPE_V'); ?>
		<?php //echo $form->textField($model,'BATTERYTYPE_V'); ?>
		<?php //echo $form->error($model,'BATTERYTPYE_V'); ?>
	</label>
	 
	<label>
	 <tr>
 <td>
		<?php echo $form->labelEx($model,'SERIAL_N'); ?>
		</td>
<td>
		<?php echo $form->textField($model,'SERIAL_N',array('size'=>5,'maxlength'=>5)); ?>
		<?php //echo $form->error($model,'SERIAL_N'); ?>
		</td>
</tr>
<?php echo "<br>" ?>
	</label>

	<label>
	 <tr>
 <td>
		<?php echo $form->labelEx($model,'SETUP_D'); ?>
		<?php echo "<br>" ?>
				</td>
<td>
		<?php // echo $form->textField($model,'SETUP_D'); ?>
		<?php //echo $form->error($model,'SETUP_D'); ?>		
		<?php
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'SETUP_D',
			    'options'=>array(
			        'showAnim'=>'fold',
					'dateFormat'=>'yy-mm-dd'
			    ),
			    'htmlOptions'=>array(
			        'style'=>'height:20px;'
			    ),
				'language'=>'ZH-CN'
			));
		?>
		
		</td>
</tr>
<?php echo "<br>" ?>
	</label>


	<label>
		<?php //echo $form->labelEx($model,'CREATE_USERID'); ?>
		<?php //echo $form->textField($model,'CREATE_USERID',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'CREATE_USERID'); ?>
	</label>

 
	<label>
		<?php //echo $form->labelEx($model,'STATUS_N'); ?>
		<?php //echo $form->textField($model,'STATUS_N'); ?>
		<?php //echo $form->error($model,'STATUS_N'); ?>
	</label>
 
	<label>
		<?php //echo $form->labelEx($model,'CURVAL_N'); ?>
		<?php //echo $form->textField($model,'CURVAL_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'CURVAL_N'); ?>
	</label>
 
	<label>
		<?php //echo $form->labelEx($model,'CURINNER_N'); ?>
		<?php //echo $form->textField($model,'CURINNER_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'CURINNER_N'); ?>
	</label>
 
	<label>
		 <tr>
 <td>
		<?php echo $form->labelEx($model,'CURDATE_D'); ?>
		<?php //echo $form->textField($model,'CURDATE_D'); ?>
		<?php //echo $form->error($model,'CURDATE_D'); ?>
		</td>
<td>
				<?php
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'CURDATE_D',
			    'options'=>array(
			        'showAnim'=>'fold',
					'dateFormat'=>'yy-mm-dd'
			    ),
			    'htmlOptions'=>array(
			        'style'=>'height:20px;'
			    ),
				'language'=>'ZH-CN'
			));
		?>
		</td>
</tr>
	</label>
 </table>
	<label>
		<?php //echo $form->labelEx($model,'TESTVOLUME_N'); ?>
		<?php //echo $form->textField($model,'TESTVOLUME_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'TESTVOLUME_N'); ?>
	</label>
 
	<label>
		<?php //echo $form->labelEx($model,'POWERSUPPLY_N'); ?>
		<?php //echo $form->textField($model,'POWERSUPPLY_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'POWERSUPPLY_N'); ?>
	</label>
 
	<label>
		<?php //echo $form->labelEx($model,'BACKLOAD_N'); ?>
		<?php //echo $form->textField($model,'BACKLOAD_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'BACKLOAD_N'); ?>
	</label>
 
	<label>
		<?php //echo $form->labelEx($model,'FORCASTVOLUME_N'); ?>
		<?php //echo $form->textField($model,'FORCASTVOLUME_N',array('size'=>10,'maxlength'=>10)); ?>
		<?php //echo $form->error($model,'FORCASTVOLUME_N'); ?>
	</label>
	
	<label>
		<?php //echo $form->labelEx($model,'REMARK_V'); ?>
		<?php //echo $form->textField($model,'REMARK_V',array('size'=>60,'maxlength'=>255)); ?>
		<?php //echo $form->error($model,'REMARK_V'); ?>
	</label>
 <?php echo "<br>" ?>
	<?php echo CHtml::submitButton($model->isNewRecord ? '添加' : '保存',array('class'=>'button blue')); ?>
</fieldset>
<?php $this->endWidget(); ?>

